        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>TimeOfImpactConstraint class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="TimeOfImpactConstraint">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/TimeOfImpactConstraint.html">TimeOfImpactConstraint</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>TimeOfImpactConstraint</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class TimeOfImpactConstraint {
 final List&lt;vec2&gt; localPoints;
 final vec2 localNormal;
 final vec2 localPoint;
 int type;
 num radius;
 int pointCount;
 Body bodyA;
 Body bodyB;

 TimeOfImpactConstraint() :
   localPoints = new List&lt;vec2&gt;(Settings.MAX_MANIFOLD_POINTS),
   localNormal = new vec2.zero(),
   localPoint = new vec2.zero(),
   type = 0,
   radius = 0,
   pointCount = 0,
   bodyA = null,
   bodyB = null {
   for (int i = 0; i &lt; localPoints.length; i++) {
     localPoints[i] = new vec2.zero();
   }
 }

 void setFrom(TimeOfImpactConstraint argOther){
   for(int i=0; i&lt;localPoints.length; i++){
     localPoints[i].copyFrom(argOther.localPoints[i]);
   }
   localNormal.copyFrom(argOther.localNormal);
   localPoint.copyFrom(argOther.localPoint);
   type = argOther.type;
   radius = argOther.radius;
   pointCount = argOther.pointCount;
   bodyA = argOther.bodyA;
   bodyB = argOther.bodyB;
 }
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="TimeOfImpactConstraint">
<button class="show-code">Code</button>
new <strong>TimeOfImpactConstraint</strong>() <a class="anchor-link" href="#TimeOfImpactConstraint"
              title="Permalink to TimeOfImpactConstraint.TimeOfImpactConstraint">#</a></h4>
<div class="doc">
<pre class="source">
TimeOfImpactConstraint() :
 localPoints = new List&lt;vec2&gt;(Settings.MAX_MANIFOLD_POINTS),
 localNormal = new vec2.zero(),
 localPoint = new vec2.zero(),
 type = 0,
 radius = 0,
 pointCount = 0,
 bodyA = null,
 bodyB = null {
 for (int i = 0; i &lt; localPoints.length; i++) {
   localPoints[i] = new vec2.zero();
 }
}
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="bodyA">
<button class="show-code">Code</button>
<a href="../box2d/Body.html">Body</a>         <strong>bodyA</strong> <a class="anchor-link"
            href="#bodyA"
            title="Permalink to TimeOfImpactConstraint.bodyA">#</a>
        </h4>
        <div class="doc">
<pre class="source">
bodyA
</pre>
</div>
</div>
<div class="field"><h4 id="bodyB">
<button class="show-code">Code</button>
<a href="../box2d/Body.html">Body</a>         <strong>bodyB</strong> <a class="anchor-link"
            href="#bodyB"
            title="Permalink to TimeOfImpactConstraint.bodyB">#</a>
        </h4>
        <div class="doc">
<pre class="source">
bodyB
</pre>
</div>
</div>
<div class="field"><h4 id="localNormal">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>localNormal</strong> <a class="anchor-link"
            href="#localNormal"
            title="Permalink to TimeOfImpactConstraint.localNormal">#</a>
        </h4>
        <div class="doc">
<pre class="source">
localNormal
</pre>
</div>
</div>
<div class="field"><h4 id="localPoint">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>localPoint</strong> <a class="anchor-link"
            href="#localPoint"
            title="Permalink to TimeOfImpactConstraint.localPoint">#</a>
        </h4>
        <div class="doc">
<pre class="source">
localPoint
</pre>
</div>
</div>
<div class="field"><h4 id="localPoints">
<button class="show-code">Code</button>
final List&lt;<a href="../vector_math/vec2.html">vec2</a>&gt;         <strong>localPoints</strong> <a class="anchor-link"
            href="#localPoints"
            title="Permalink to TimeOfImpactConstraint.localPoints">#</a>
        </h4>
        <div class="doc">
<pre class="source">
localPoints
</pre>
</div>
</div>
<div class="field"><h4 id="pointCount">
<button class="show-code">Code</button>
int         <strong>pointCount</strong> <a class="anchor-link"
            href="#pointCount"
            title="Permalink to TimeOfImpactConstraint.pointCount">#</a>
        </h4>
        <div class="doc">
<pre class="source">
pointCount
</pre>
</div>
</div>
<div class="field"><h4 id="radius">
<button class="show-code">Code</button>
num         <strong>radius</strong> <a class="anchor-link"
            href="#radius"
            title="Permalink to TimeOfImpactConstraint.radius">#</a>
        </h4>
        <div class="doc">
<pre class="source">
radius
</pre>
</div>
</div>
<div class="field"><h4 id="type">
<button class="show-code">Code</button>
int         <strong>type</strong> <a class="anchor-link"
            href="#type"
            title="Permalink to TimeOfImpactConstraint.type">#</a>
        </h4>
        <div class="doc">
<pre class="source">
type
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d/TimeOfImpactConstraint.html">TimeOfImpactConstraint</a> argOther) <a class="anchor-link" href="#setFrom"
              title="Permalink to TimeOfImpactConstraint.setFrom">#</a></h4>
<div class="doc">
<pre class="source">
void setFrom(TimeOfImpactConstraint argOther){
 for(int i=0; i&lt;localPoints.length; i++){
   localPoints[i].copyFrom(argOther.localPoints[i]);
 }
 localNormal.copyFrom(argOther.localNormal);
 localPoint.copyFrom(argOther.localPoint);
 type = argOther.type;
 radius = argOther.radius;
 pointCount = argOther.pointCount;
 bodyA = argOther.bodyA;
 bodyB = argOther.bodyB;
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
